
import datetime
from enum import IntEnum
from pydantic import BaseModel
from model import Base, BasicsModel, TurnDict
from sqlalchemy import Column, String, Integer, DateTime, Boolean, create_engine, Enum, JSON, DECIMAL, Text, func

class {{.structName}}(Base, BasicsModel, TurnDict, BaseModel):
    __tablename__ = '{{Lower .structName}}'
    {{- range .fieldNameList}}
    {{- if eq .isSave true}}
    {{.FieldName}} = Column({{.FieldType}})
    {{- else}}
    {{.FieldName}} = {{.FieldType}}
    {{- end}}
    {{- end}}

